package com.lin.spring.proxy.staticly;

import com.lin.spring.proxy.Boss;
import com.lin.spring.proxy.Rent;

/**
 * @ClassName StaticProxy
 * @Description staticProxy
 * @Author lin
 * @Date 2021/11/11 下午9:45
 * @Version V1.0
 */
public class StaticProxy implements Rent {

    private Boss boss = new Boss();

    @Override
    public void rent() {
        System.out.println("打房屋出租广告");
        boss.rent();
        System.out.println("收中介费");
    }
}
